<template>
	<view class="content" >
		<view class="page-box">
			<view class="order"  v-for="(item, index) in historylist" :key="index" >
				<view class="top">
					<view class="left">
						<u-icon name="home" :size="30" color="rgb(94,94,94)"></u-icon>
						<view class="store">俊文的衣服</view>
					</view>
					<view class="right">2020-04-01</view>
				</view>
				<view class="item" v-for="(item, index) in historylist" :key="index" >
					<view class="left"><image :src="item.goodsUrl" mode="aspectFill"></image></view>
					<view class="content">
						<view class="title u-line-2">领取地址：宁波大学科学技术学院</view>
						<view class="delivery-time">领取状态：未领取</view>
						<view style="height: 20rpx;"></view>
						<view class="title u-line-2"><button @click="qrcard">二维码</button> </view>
					</view>
				</view>
			</view>
		</view>
		<u-modal ref="uModal" v-model="show" :show-cancel-button="true"
			:show-title="showTitle" :async-close="asyncClose"
			@confirm="confirm" :content="content">
			
			<view class="warp" style="margin: 30rpx;text-align: center;" v-if="contentSlot" >
				<image class="logo" src="https://uviewui.com/common/logo.png" style="width: 220rpx;" mode="widthFix"></image>
			</view>
		</u-modal>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				historylist: [{}],
				merchantId:'',
				show: false,
				zoom: false,
				contentSlot: true,
				showTitle: true,
				asyncClose: false
			}
		},
		onLoad() {
/* 				this.$u.api.selectMerchantPrizeInfo()({
					studentId:
				}).then(res => {
					this.historylist=res.rows;
					console.log(this.historylist);
				}) */
		},

		methods: {
			qrcard(){
				this.show = true
			},
			navigate(path,caseId,caseStatus){
				uni.navigateTo({
				    url: path+'?caseId=' +caseId +'&caseStatus=' + caseStatus
				});
			},

			
		}
	}
</script>
<style>
/* #ifndef H5 */
page {
	height: 100%;
	background-color: #f2f2f2;
}
/* #endif */
</style>
<style lang="scss" scoped>
	
	.content{
		font-size: 31upx;
	}
	.item {
		margin-top: 20upx;
		
		padding: 20upx;
	}
	.demo-layout{
		
	}
	.flex{
		display:flex;
		align-items:center
	}
	.mt{
		margin-top:10upx;
	}
	.order {
		width: 710rpx;
		background-color: #ffffff;
		margin: 20rpx auto;
		border-radius: 20rpx;
		box-sizing: border-box;
		padding: 20rpx;
		font-size: 28rpx;
		.top {
			display: flex;
			justify-content: space-between;
			.left {
				display: flex;
				align-items: center;
				.store {
					margin: 0 10rpx;
					font-size: 32rpx;
					font-weight: bold;
				}
			}
			.right {
				color: $u-type-warning-dark;
			}
		}
		.item {
			display: flex;
			margin: 20rpx 0 0;
			.left {
				margin-right: 20rpx;
				image {
					width: 200rpx;
					height: 200rpx;
					border-radius: 10rpx;
				}
			}
			.content {
				.title {
					font-size: 28rpx;
					line-height: 50rpx;
				}
				.type {
					margin: 10rpx 0;
					font-size: 24rpx;
					color: $u-tips-color;
				}
				.delivery-time {
					color: #e5d001;
					font-size: 30rpx;
				}
			}
			.right {
				margin-left: 10rpx;
				padding-top: 20rpx;
				text-align: right;
				.decimal {
					font-size: 24rpx;
					margin-top: 4rpx;
				}
				.number {
					color: $u-tips-color;
					font-size: 24rpx;
				}
			}
		}
		.total {
			margin-top: 20rpx;
			text-align: right;
			font-size: 24rpx;
			.total-price {
				font-size: 32rpx;
			}
		}
		.bottom {
			display: flex;
			margin-top: 40rpx;
			padding: 0 10rpx;
			justify-content: space-between;
			align-items: center;
			.btn {
				line-height: 52rpx;
				width: 160rpx;
				border-radius: 26rpx;
				border: 2rpx solid $u-border-color;
				font-size: 26rpx;
				text-align: center;
				color: $u-type-info-dark;
			}
			.evaluate {
				color: $u-type-warning-dark;
				border-color: $u-type-warning-dark;
			}
		}
	}


</style>
